<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/amazeui.min.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/admin.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/app.css">
</head>
<body>
	<div class="tpl-content-page-title">事件设置</div>
	<ol class="am-breadcrumb">
		<li><a href="#" class="am-icon-home">首页</a></li>
		<li class="am-active">事件设置</li>
	</ol>
	<div class="tpl-portlet-components">
		<div class="portlet-title">
			<div class="caption font-green bold">
				<span class="am-icon-edit"></span> 事件列表
			</div>
			<div class="tpl-portlet-input tpl-fz-ml">
				<div class="portlet-input input-small input-inline">
					<div class="input-icon right">
						<i class="am-icon-search" style="margin-top: 8px"></i> <input
							type="text" class="form-control form-control-solid"
							placeholder="搜索...">
					</div>
				</div>
			</div>
		</div>
		<div class="tpl-block">
			<div class="am-g">
				<div class="am-u-sm-12">
					<form class="am-form">
						<table class="am-table am-table-striped am-table-hover table-main">
							<thead>
								<tr>
									<th>事件编号</th>
									<th>失联宠物姓名</th>
									<th>年龄</th>
									<th>性别</th>
									<th>失踪地点</th>
									<th>失踪时间</th>
									<th>负责工作人员</th>
									<th>设置</th>
								</tr>
							</thead>
							<tbody>
							<c:forEach items="${eventList}" var="event">
								<tr>
									<td>${event.id }</td>
									<td>${event.children.name }</td>
									<td>${event.children.age }岁</td>
								<c:if test="${event.children.sex==1}">
									<td>男孩</td>
								</c:if>
								<c:if test="${event.children.sex==2}">
									<td>女孩</td>
								</c:if>
								<td>${event.event_point }</td>
								<td><fmt:formatDate value="${event.event_time }"
										pattern="yyyy-MM-dd HH:mm" /></td>
								<td>${event.police_name }</td>
									<td>
										<div class="am-btn-toolbar">
											<div class="am-btn-group am-btn-group-xs">
												<a href="${pageContext.request.contextPath}/my/police/toEventForm.do?event_id=${event.id}"
													class="am-btn am-btn-default am-btn-xs am-text-secondary">
													<span class="am-icon-pencil-square-o"></span> 编辑
												</a>
											</div>
										</div>
									</td>
								</tr>
							</c:forEach>
							</tbody>
						</table>
						<div class="am-cf">
							<div class="am-fr">
								<ul class="am-pagination tpl-pagination">
									<li class="am-disabled"><a href="#">«</a></li>
									<li class="am-active"><a href="#">1</a></li>
									<li><a href="#">2</a></li>
									<li><a href="#">3</a></li>
									<li><a href="#">4</a></li>
									<li><a href="#">5</a></li>
									<li><a href="#">»</a></li>
								</ul>
							</div>
						</div>
						<hr>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>